<?php
/**
 * Author: Administrator
 * Date: 2022/8/4 0:36
 */

namespace DesignPatterns\Behavioral\Visitor;


class Enemy extends AbstractEntity
{
    private $damage;
    private $name;

    public function __construct($name, $damage)
    {
        $this->name = $name;
        $this->damage = $damage;
    }

    protected function EntityType()
    {
        return 'Enemy';
    }

    public function getDamage() {
        return $this->damage;
    }

    public function getName() {
        return $this->name;
    }
}